/*
 * Constants.java
 *
 *  created: 2.11.2011
 *  charset: UTF-8
 *  license: MIT (X11) (See LICENSE file for full license)
 */
package cz.mp.k3bg;

import static cz.mp.k3bg.TextSource.getLocText;
import cz.mp.k3bg.misc.ExtFileFilter;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author Martin Pokorný
 * @version 0.1
 */
public class Constants {

    /** Seznam povolených přípon HTML souborů. */
    public static final List<String> HTML_EXTENSIONS = 
            Collections.unmodifiableList(
                Arrays.asList("html", "htm"));

    /** Seznam povolených přípon souboru obrázku obálky. */
    public static final List<String> COVER_EXTENSIONS = 
            Collections.unmodifiableList(
                Arrays.asList("jpg", "jpeg", "gif"));
    
    public static final String OPF_EXTENSION = "opf";
    
    
    public static final ExtFileFilter HTML_FILEFILTER = 
            new ExtFileFilter(
                    getLocText("gui.filechooser.file_filter.html"), 
                    HTML_EXTENSIONS);
    public static final ExtFileFilter COVER_FILEFILTER = 
            new ExtFileFilter(
                    getLocText("gui.filechooser.file_filter.cover"), 
                    COVER_EXTENSIONS);
    public static final ExtFileFilter OPF_FILEFILTER = 
            new ExtFileFilter(
                    getLocText("gui.filechooser.file_filter.opf"), 
                    OPF_EXTENSION);
    

    /**
     * URL, kde se dá stáhnout program {@code kindlegen}.
     */
    public static final String KINDLEGEN_DOWNLOAD_URL =
            "http://www.amazon.com/gp/feature.html/?docId=1000765211";
//            "http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621";     // také platné

    /**
     * URL, kde se dá stáhnout program {@code kindlepreviewer}.
     */
    public static final String KINDLEPREVIEWER_DOWNLOAD_URL =
            "http://www.amazon.com/kindleformat/kindlepreviewer";
    
    /**
     * 
     */
    public static final String AMAZON_SOFTWARE_LICENCE_URL =
            "http://aws.amazon.com/asl/";

    /**
     *
     */
    public static final String AMAZON_KDP =
            "https://kdp.amazon.com/";

    /**
     *
     */
    public static final String KINDLEGEN_RELEASE_NOTES_URL =
            "https://kindlegen.s3.amazonaws.com/docs/english/Release%20Notes.html";

    /**
     * URL, kde se nachází příručka jak vytvářet knihu pro Kindle v mobi.
     */
    public static final String KINDLE_PUBLISHING_GUIDELINES_URL =
            "http://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf";

    
    public static final String RFC_3066_URL =
            "http://www.i18nguy.com/unicode/language-identifiers.html";

    /**
     * 
     */
    public static final String MOBIPOCKET_READER_URL = 
            "http://www.mobipocket.com/en/downloadsoft/productdetailsreader.asp";
    
    /**
     * 
     */
    public static final String MOBIPOCKET_CREATOR_URL = 
            "http://www.mobipocket.com/en/downloadsoft/productdetailscreator.asp";

    
    
    /** */
    private Constants() {    
    }

}   // Constants.java

